package org.kaleido.client.view.impl;

import org.kaleido.client.resources.KaleidoResources;
import org.kaleido.client.view.IHeaderMenuView;

import com.google.gwt.event.dom.client.HasClickHandlers;
import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.FlowPanel;
import com.google.gwt.user.client.ui.Image;
import com.google.gwt.user.client.ui.Label;
import com.google.gwt.user.client.ui.SimplePanel;

/**
 * Pantalla que mostrará el listado de Gestiones.
 * 
 * @author inifc
 * 
 */
public class HeaderMenuViewImpl extends SimplePanel implements IHeaderMenuView {

    private Image newLogImg = new Image();

    private Image adminMenuImg = new Image();

    public HeaderMenuViewImpl() {
        FlowPanel flow = new FlowPanel();
        add(flow);
        flow.add(new Label("Menu de la cabecera"));
        // newLogImg.setStyleName(KaleidoResources.INSTANCE.css().newElement());
        newLogImg.setResource(KaleidoResources.INSTANCE.newElement());
        flow.add(newLogImg);
        // adminMenuImg.setStyleName(KaleidoResources.INSTANCE.css().admin());
        adminMenuImg.setResource(KaleidoResources.INSTANCE.newElement());
        flow.add(adminMenuImg);
    }

    public HasClickHandlers getNewLogHandler() {
        return newLogImg;
    }

    public HasClickHandlers getAdminMenuHandler() {
        return adminMenuImg;
    }
}
